import { atom } from 'recoil';
import type { RecoilState } from 'recoil';

export declare type UserModelType = Record<any, any> | undefined;

export const useUserModel = atom({
  key: 'userInfo',
  default: undefined,
}) as RecoilState<UserModelType | undefined>;
